package com.baibei.sdk;

import com.baibei.ebec.sdk.IQuotationApi;
import com.github.raee.runit.AndroidRUnit4ClassRunner;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.util.ArrayList;

/**
 * token 测试
 * Created by ChenRui on 2017/8/3 0003 10:54.
 */
@RunWith(AndroidRUnit4ClassRunner.class)
public class QuotationApiTest extends SdkTest {

    private IQuotationApi mQuotationApi;

    @Override
    @Before
    public void setup() {
        super.setup();
        mQuotationApi = getApiProvider().getQuotationApi();
    }

    /**
     * 行情价格
     */
    @Test
    public void testQuotationPrice() throws Exception {
        ArrayList<String> list = new ArrayList<>();
        list.add("0001");
        list.add("0002");
        list.add("0003");
        runTest(this.mQuotationApi.getQuotationInfo(list));
    }


    /**
     * 产品价格
     */
    @Test
    public void testProductPrice() throws Exception {
        runTest(mQuotationApi.getProductPrice("1"));
    }
}
